package com.jiaeda.shiromaster.mapper;

import com.jiaeda.shiromaster.entity.SysUserRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by chengchaopeng on 2018/6/27.
 */
@Mapper
@Component
public interface SysUserRoleMapper {
     @Select("select user_id as userId,role_id as roleId from sys_user_role where user_id=#{userId}")
    List<SysUserRole> findByUserId(@Param("userId") Integer userId);
}
